//
//  CommonReqManage.h
//  citzenWorkStation
//
//  Created by yang qing on 2018/2/28.
//  Copyright © 2018年 yang qing. All rights reserved.
//

#import "RequestManage.h"

@interface CommonReqManage : RequestManage

//登录
+ (void)LoginWidthParam:(NSDictionary *)params
                success:(SuccessBlock)successBlock
                 failed:(FailureBlock)failureBlock;

//获取验证码
+ (void)getMesgCode:(NSString *)phoneNumber
            success:(SuccessBlock)successBlock
             failed:(FailureBlock)failureBlock;
//找回密码
+ (void)findPsw:(id)userInfo
            success:(SuccessBlock)successBlock
             failed:(FailureBlock)failureBlock;
//获取上传图片路径
+ (void)getFilePath:(NSInteger)num
           fileType:(NSString *)type
             suffix:(NSString *)suffix
            success:(SuccessBlock)successBlock
             failed:(FailureBlock)failureBlock;

//更新用户信息
+ (void)updateUserInfo:(id)userInfo
               success:(SuccessBlock)successBlock
                failed:(FailureBlock)failureBlock;

//上传图片
+ (void)uploadHeadImg:(NSData *)imageData
             fileName:(NSString *)fileName
             fileType:(NSString *)fileType
            imagePath:(NSString *)imagePath
             progress:(ProgressBlock)progressBlock
              success:(SuccessBlock)successBlock
               failed:(FailureBlock)failureBlock;


//注册用户
+ (void)userRegister:(id)userInfo
               success:(SuccessBlock)successBlock
                failed:(FailureBlock)failureBlock;


//实名认证
+ (void)identifyAuthentication:(id)userInfo
             success:(SuccessBlock)successBlock
              failed:(FailureBlock)failureBlock;

//获取网格编号
+ (void)getGridByGeo:(NSString *)geometry
                       success:(SuccessBlock)successBlock
                        failed:(FailureBlock)failureBlock;


@end
